pub fn dp_rec_mc(amount: u32) -> u32 {
    if amount == 0 {
        return 0;
    }

    let coins = [1, 2, 5, 10, 20, 30, 50, 100];
    let mut dp = vec![u32::MAX; (amount + 1) as usize];
    dp[0] = 0;

    for coin in coins {
        for i in coin..=amount {
            if dp[(i - coin) as usize] != u32::MAX {
                dp[i as usize] = dp[i as usize].min(dp[(i - coin) as usize] + 1);
            }
        }
    }

    if dp[amount as usize] == u32::MAX {
        0 // 如果无法凑成该金额，返回 0
    } else {
        dp[amount as usize]
    }
}
